<%@ page contentType="text/html;charset=UTF-8" language="java" %>  
<%@include file="/common/jsp/common_header.jsp"%>
    <script>
        var x_open_path="<%=request.getContextPath()%>/ui/skin/donave/images/window/";
        var body_width=150;
        var body_height=150;
    </script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/js/tree/xtree.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/js/tree/xloadtree.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/js/tree/xmlextras.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/js/common_prototype.js"></script>
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/ui/skin/donave/css/xtree.css" />

<script language="javascript">
    function refresh(){
        window.location.href = "<%=request.getContextPath()%>/cms/cmsfold!folderManageTree.action";
    }
    function init(){
        var rsb_height = document.body.offsetHeight;
        body.style.height = rsb_height-20;
        body.style.width = document.body.offsetWidth;
    }
</script>

<body scroll="no" leftmargin="0" topmargin="0" onload="init()" onresize="init()">
<div id="toolbars">
    <table class='middleMenuTop'>
        <tr>
            <td>&nbsp;</td>
            <td width="25" height="20" align="center"><img style="cursor:hand;" alt="展开" onclick="javascript:openall();" src="<%=request.getContextPath()%>/ui/skin/donave/images/tree/open.gif" border="0"/></td>
            <td width="25" height="20" align="center"><img style="cursor:hand;" alt="折叠" onclick="javascript:closeall();" src="<%=request.getContextPath()%>/ui/skin/donave/images/tree/close.gif" border="0"/></td>
            <td width="25" height="20" align="center"><img style="cursor:hand;" alt="刷新" onclick="javascript:refresh();" src="<%=request.getContextPath()%>/ui/skin/donave/images/tree/refresh.gif" border="0"/></td>
        </tr>
    </table>
</div>
<div id="body" style="overflow:auto;">
<script type="text/javascript">
     var tree;
     tree = new WebFXLoadTree("信息资源库", ctx+"/treeServlet?kind=cn.donave.framework.tree.impl.FolderManageTreeImpl&ctx="+ctx,ctx+"/cms/cmsfold!listChildFolders.action?columns.parentId=0","frmRight");
     document.write(tree);
     tree.focus();
     function openall(){
        tree.expandAll();
     }
     function closeall(){
         tree.collapseChildren();
     }
</script>
</div>
</body>
</html>